interface IFormatterProps {
    toThousands: (price: number) => string
}

const Formatter: IFormatterProps = {} as IFormatterProps

Formatter.toThousands = (price: number) => {
    return '￥' + (price || 0).toString().replace(/(\d)(?=(?:\d{3})+$)/g, '$1,')
}

export default Formatter
